-- GENERATED SPELL FOR [Whitewhisker Geomancer] --


function spell0_11604(pUnit, Event) --@Fire Shield,n/a--
pUnit:FullCastSpellOnTarget(18968,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11604', 0, 1)
end

function spell1_11604(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(15228,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11604', 3000, 1)
end

function Sorts_11604(pUnit, Event)
local choix_sorts_11604 = math.random(0, 1)
if choix_sorts_11604 == 0 then
pUnit:RegisterEvent('spell0_11604', 1, 1)
end
if choix_sorts_11604 == 1 then
pUnit:RegisterEvent('spell1_11604', 1, 1)
end
end

function mob11604_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11604', math.random(1500, 3000), 1)
end

function mob11604_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11604_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11604_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11604, 1, 'mob11604_Action')
RegisterUnitEvent(11604, 2, 'mob11604_Leave')
RegisterUnitEvent(11604, 3, 'mob11604_Kill')
RegisterUnitEvent(11604, 4, 'mob11604_Die')
